import request from "../request"

// 新增风险规则
export function addRiskRule(data){
  return request({
    url: "/car/risk/v/rule/add",
    method: "post",
    data:data,
  });
}
// 修改风险规则
export function updateRiskRule(data){
  return request({
    url: "/car/risk/v/rule/upt",
    method: "post",
    data:data,
  });
}
// 风险规则管理列表
export function getRiskRuleQuery(data){
  return request({
    url: "/car/risk/v/rule/query",
    method: "get",
    params:data,
  });
}
// 风险规则下拉列表
export function getRiskRuleList(data){
  return request({
    url: "/car/risk/v/rule/list",
    method: "get",
    params:data,
  });
}
// 风险规则删除
export function deleteRiskRule(data){
  return request({
    url: "/car/risk/v/rule/delete",
    method: "get",
    params:data,
  });
}
// 启用风险规则
export function startRiskRule(data){
  return request({
    url: "/car/risk/v/rule/start",
    method: "post",
    data:data,
  });
}
// 停用风险规则
export function stopRiskRule(data){
  return request({
    url: "/car/risk/v/rule/stop",
    method: "post",
    data:data,
  });
}
